import { useState } from "react";


function App() {
  let [cc,setCc]=useState(1)
  let b=[1,2]
  let tap=(e)=>{
    setCc(++cc)
  }
  return (
    <div className="App">
      <header className="App-header">

        <div
             onClick={()=>tap()}
        >
         {cc}
        </div>
        {b.map(i=><div key={i}>{i}</div>)}
      </header>
    </div>
  );
}

export default App;
